package nc.ui.med.bd.mcm.chnlarea;

import nc.bs.med.pub.constant.IChnlAreaConstant;
import nc.ui.med.bd.medpub.AbstractClientCtrl;
import nc.ui.trade.bill.IListController;
import nc.ui.trade.bill.ISingleController;
import nc.ui.trade.button.IBillButton;
import nc.ui.trade.treecard.ITreeCardController;
import nc.vo.med.bd.mcm.chnlarea.ChnlAreaVO;
import nc.vo.trade.pub.HYBillVO;

public class ClientCtrl extends AbstractClientCtrl implements ITreeCardController, IListController,
		ISingleController {

	public String getBillType() {
		return IChnlAreaConstant.FUNCODE;
	}
	
	public int[] getCardButtonAry() {

		int[] cardButtonAry = null;
		cardButtonAry = new int[] { 
			IBillButton.Add, 
			IBillButton.Save,
			IBillButton.Cancel, 
			IBillButton.Edit, 
			IBillButton.Delete,
			IBillButton.Refresh, 
			IBillButton.Print, 
			//IBDButton.EXPORT,
			IBillButton.Return 
		};

		return cardButtonAry;
	}

	public String[] getBillVoName() {
		return new String[] { 
			HYBillVO.class.getName(),
			ChnlAreaVO.class.getName(), 
			ChnlAreaVO.class.getName() 
		};
	}
	
	public String getPkField() {
		return IChnlAreaConstant.TABLEKEY;
	}

}
